package ar.com.psicosoft.model.psicosoft;

import java.io.Serializable;

import javax.persistence.*;

import java.sql.Timestamp;

/**
 * The persistent class for the linea_factura database table.
 * 
 */
@Entity
@Table(name = "linea_factura", schema = "psicosoft")
@NamedQuery(name = "LineaFactura.findAll", query = "SELECT l FROM LineaFactura l")
public class LineaFactura implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name = "sec_linea_factura", sequenceName = "psicosoft.sec_linea_factura")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sec_linea_factura")
	@Column(name = "\"idLineaFactura\"", unique = true, nullable = false)
	private Integer idLineaFactura;

	private Timestamp baja;

	private Integer cantidad;

	@Column(length = 255)
	private String concepto;

	@Column(name = "\"idFactura\"", nullable = false)
	private Integer idFactura;

	@Column(name = "\"idSesion\"")
	private Integer idSesion;

	@Column(nullable = false)
	private double importe;

	@Column(nullable = false)
	private double irpf;

	@Column(nullable = false)
	private double iva;

	private Integer linea;

	@Column(name = "porcen_descuento")
	private double porcenDescuento;

	@Column(name = "porcen_irpf", nullable = false)
	private double porcenIrpf;

	@Column(name = "porcen_iva", nullable = false)
	private double porcenIva;

	@Column(name = "porcen_re", nullable = false)
	private double porcenRe;

	private double preimporte;

	@Column(length = 2147483647)
	private String protegida;

	@Column(nullable = false)
	private double re;

	// bi-directional many-to-one association to Factura
	@ManyToOne
	@JoinColumn(name = "\"idFactura\"", nullable = false, insertable = false, updatable = false)
	private Factura factura;

	// bi-directional many-to-one association to Sesion
	@ManyToOne
	@JoinColumn(name = "\"idSesion\"", nullable = false, insertable = false, updatable = false)
	private Sesion sesion;

	public LineaFactura() {
	}

	public Integer getIdLineaFactura() {
		return this.idLineaFactura;
	}

	public void setIdLineaFactura(Integer idLineaFactura) {
		this.idLineaFactura = idLineaFactura;
	}

	public Timestamp getBaja() {
		return this.baja;
	}

	public void setBaja(Timestamp baja) {
		this.baja = baja;
	}

	public Integer getCantidad() {
		return this.cantidad;
	}

	public void setCantidad(Integer cantidad) {
		this.cantidad = cantidad;
	}

	public String getConcepto() {
		return this.concepto;
	}

	public void setConcepto(String concepto) {
		this.concepto = concepto;
	}

	public Integer getIdFactura() {
		return this.idFactura;
	}

	public void setIdFactura(Integer idFactura) {
		this.idFactura = idFactura;
	}

	public Integer getIdSesion() {
		return this.idSesion;
	}

	public void setIdSesion(Integer idSesion) {
		this.idSesion = idSesion;
	}

	public double getImporte() {
		return this.importe;
	}

	public void setImporte(double importe) {
		this.importe = importe;
	}

	public double getIrpf() {
		return this.irpf;
	}

	public void setIrpf(double irpf) {
		this.irpf = irpf;
	}

	public double getIva() {
		return this.iva;
	}

	public void setIva(double iva) {
		this.iva = iva;
	}

	public Integer getLinea() {
		return this.linea;
	}

	public void setLinea(Integer linea) {
		this.linea = linea;
	}

	public double getPorcenDescuento() {
		return this.porcenDescuento;
	}

	public void setPorcenDescuento(double porcenDescuento) {
		this.porcenDescuento = porcenDescuento;
	}

	public double getPorcenIrpf() {
		return this.porcenIrpf;
	}

	public void setPorcenIrpf(double porcenIrpf) {
		this.porcenIrpf = porcenIrpf;
	}

	public double getPorcenIva() {
		return this.porcenIva;
	}

	public void setPorcenIva(double porcenIva) {
		this.porcenIva = porcenIva;
	}

	public double getPorcenRe() {
		return this.porcenRe;
	}

	public void setPorcenRe(double porcenRe) {
		this.porcenRe = porcenRe;
	}

	public double getPreimporte() {
		return this.preimporte;
	}

	public void setPreimporte(double preimporte) {
		this.preimporte = preimporte;
	}

	public String getProtegida() {
		return this.protegida;
	}

	public void setProtegida(String protegida) {
		this.protegida = protegida;
	}

	public double getRe() {
		return this.re;
	}

	public void setRe(double re) {
		this.re = re;
	}

	public Factura getFactura() {
		return this.factura;
	}

	public void setFactura(Factura factura) {
		this.factura = factura;
	}

	public Sesion getSesion() {
		return this.sesion;
	}

	public void setSesion(Sesion sesion) {
		this.sesion = sesion;
	}

}